.TH std::atomic_ref::load 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::atomic_ref::load \- std::atomic_ref::load

.SH Synopsis
   T load( std::memory_order order = std::memory_order_seq_cst ) const    \fI(since C++20)\fP
   noexcept;

   Atomically loads and returns the current value of the referenced object. Memory is
   affected according to the value of order.

   order must be one of std::memory_order_relaxed, std::memory_order_consume,
   std::memory_order_acquire or std::memory_order_seq_cst. Otherwise the behavior is
   undefined.

.SH Parameters

   order - memory order constraints to enforce

.SH Return value

   The current value of the referenced object.

.SH See also

   operator T loads a value from the referenced object
              \fI(public member function)\fP
